extends "../cex___toolman/cex___toolman.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "鹰"
	lv = 2
	attCoe.atkRan = 3
	attCoe.atk = 30 / 8.5 * 2 / 2
	attCoe.maxHp = 550 / 112.5 / 2
	attAdd.spd += 1.5
	addSkillTxt("猎鹰狙杀：普攻击中有5%概率造成150真伤，若敌人血量低于15%，则直接斩杀敌人")
func _onAtkChara(atkinfo):
	if !atkinfo.isMiss && atkinfo.atkType == Chara.AtkType.NORMAL:
		if sys.rndPer(5):
			cst("猎鹰狙杀","000000",position)
			if atkinfo.hitCha.att.hp / atkinfo.hitCha.att.maxHp <= 0.15:
				atkinfo.hitCha.plusHp(-1000000)
				hurtChara(atkinfo.hitCha,0,Chara.HurtType.REAL,Chara.AtkType.EFF)
				cst("被斩杀","FF0000",atkinfo.hitCha.position)
			else:
				hurtChara(atkinfo.hitCha,150,Chara.HurtType.REAL,Chara.AtkType.EFF)
	._onAtkChara(atkinfo)
